package com.recsmile.rpc.bo;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/8/3.
 */
public class RpcMessageRequest implements Serializable{
    private String messageId;
    private String className;
    private String methodName;
    private Class<?>[] perameterTypes;
    private Object[] args;

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Class<?>[] getPerameterTypes() {
        return perameterTypes;
    }

    public void setPerameterTypes(Class<?>[] perameterTypes) {
        this.perameterTypes = perameterTypes;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("messageId", messageId)
                .append("className", className)
                .append("methodName", methodName)
                .append("perameterTypes", perameterTypes)
                .append("args", args)
                .toString();
    }
}
